package com.mrd.gtimp.business.entity;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
/**
 * @author xiewl
 * 报关单收费记录
 */
@Entity(name = "T_BIZ_DECLARA_FREE")
public class DeclarationFree implements Serializable {

    private static final long serialVersionUID = -6907654387361071021L;

	@Id
	@Column(name = "ID")
	@GenericGenerator(name = "id", strategy = "uuid")
	@GeneratedValue(generator = "id")
	private String	          id;

	/**
     * 所属报关单id
     *//*
    @Column(name = "DECLARATION_ID")
    private String declaration_id;*/
	@OneToOne
	@JoinColumn(name = "DECLARATION_ID", updatable = false)
	private Declaration	      declaration;

    /**
     * 总费用
     */
    @Column(name = "FREE")
    private String free;

    /**
     * 支付时间
     */
    @Column(name = "PAY_TIME")
    private Date pay_time;

    /**
     * 是否已经支付 0=未支付 1=支付
     */
    @Column(name = "PAY_CONFIRM")
    private String pay_comfirm;

    /**
     * 支付业务编号
     */
    @Column(name = "PAY_ID")
    private String pay_id;

    /**
     * 与其他报关单合并支付时总费用
     */
    @Column(name = "SUM_FREE")
    private String sum_free;



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFree() {
		return free;
	}

	public void setFree(String free) {
		this.free = free;
	}

	public Date getPay_time() {
		return pay_time;
	}

	public void setPay_time(Date pay_time) {
		this.pay_time = pay_time;
	}

	public String getPay_comfirm() {
		return pay_comfirm;
	}

	public void setPay_comfirm(String pay_comfirm) {
		this.pay_comfirm = pay_comfirm;
	}

	public String getPay_id() {
		return pay_id;
	}

	public void setPay_id(String pay_id) {
		this.pay_id = pay_id;
	}

	public Declaration getDeclaration() {
		return declaration;
	}

	public void setDeclaration(Declaration declaration) {
		this.declaration = declaration;
	}

	public String getSum_free() {
		return sum_free;
	}

	public void setSum_free(String sum_free) {
		this.sum_free = sum_free;
	}


}
